﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Windows.Forms;

namespace Language_Editor
{
    public class ConfigManager //bruges til nem management af konfigurationsfilen der tilhører language editoren
    {
        private static Configuration config;
        public static Configuration Config {
            private set
            {
                config=value;
            } 
            get{
                if(config==null)
                    config = ConfigurationManager.OpenExeConfiguration(Application.ExecutablePath);
                return config;
            }
        }
        public const string LANGUAGE = "CurrentLanguage";
        public const string PREFEREDLANGUAGE = "Translationlanguage";
    }
}
